package com.sddnytsh.body_buildingsystem.topic

/**
 * 运动相关数据模型
 */

/**
 * 运动信息
 */
data class ExerciseInfo(
    val id: Long,
    val name: String,
    val category: String,
    val description: String,
    val hasSpeed: Boolean,
    val hasHeartRate: Boolean,
    val createdAt: String,
    val updatedAt: String
)

/**
 * 运动记录信息
 */
data class ExerciseRecordInfo(
    val id: Long,
    val userId: Long,
    val exerciseId: Long,
    val exerciseName: String,
    val startTime: String,
    val endTime: String? = null,
    val duration: String? = null,
    val durationSeconds: Long? = null,
    val avgHeartRate: Double? = null,
    val maxHeartRate: Double? = null,
    val avgSpeed: Double? = null,
    val maxSpeed: Double? = null,
    val status: String,
    val hasSpeed: Boolean,
    val hasHeartRate: Boolean,
    val createdAt: String
)

/**
 * 开始运动请求
 */
data class ExerciseRecordStartRequest(
    val userId: Long,
    val exerciseId: Long,
    val startTime: String
)

/**
 * 结束运动请求
 */
data class ExerciseRecordEndRequest(
    val avgHeartRate: Double? = null,
    val maxHeartRate: Double? = null,
    val avgSpeed: Double? = null,
    val maxSpeed: Double? = null
)
